import java.io.*;

public class Byte {
    public static void main(String[] args) throws IOException {
        InputStream is = new FileInputStream(new File("test.txt"));
        byte[] b = new byte[5];
        int len = 0;
        while ((len = is.read(b)) != -1) {
            String s = new String(b);
            System.out.println(s);
        }
        is.close();
    }
}
